package DBMGR;

import java.sql.Connection;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;


public class DBConnect {
	Connection conn = null; 
	public DBConnect() {
		

		try {
			Context init = new InitialContext();
			DataSource ds = (DataSource) init.lookup("java:comp/env/jdbc/OracleDB");
			conn = ds.getConnection();
		 	
		}catch(Exception e){

			e.printStackTrace();
		}
	}
	public Connection getConnection(){
		return conn;
	}
}
